<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<form action="/demo/demo_form.asp">
  请输入 1980-01-01 之前的日期：<br>
  <input type="date" name="bday" max="1979-12-31"><br><br>
  请输入 2000-01-01 之后的日期：<br>
  <input type="date" name="bday" min="2000-01-02"><br><br>
  <input type="submit">
</form>

</body>
</html>